package com.candy.control;

import com.candy.bean.UserInfo;
import com.candy.service.UserinfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/userinfo")
public class UserInfoController {
    @Autowired
    UserinfoService userinfoService;

    @RequestMapping("/getallinfoes")
    public List<UserInfo> getAllInfoes(UserInfo userInfo){
        List<UserInfo> lst=userinfoService.getAllInfoes(userInfo);
        return lst;
    }


}
